// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Items/Item.h"
#include "Soul.generated.h"


UCLASS()
class NEWMYPROJECT2_API ASoul : public AItem
{
	GENERATED_BODY()
public:
	void BeginPlay()override;

	void Tick(float DeltaTime)override;

	virtual void OnSphereOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)override;
	FORCEINLINE int32 GetSouls() { return Souls; }
	FORCEINLINE void SetSouls(int32 NumberSouls) { Souls = NumberSouls; }
private:
	UPROPERTY(EditAnywhere)
	int32 Souls;

	double DesiredZ;

	UPROPERTY(EditAnywhere)
	float DriftRate = -20.f;
};
